
CC	=	gcc
CFLAGS	=	`pkg-config gtk+-2.0 --cflags`
LD	=	gcc
LDLIB	=	`pkg-config gtk+-2.0 --libs`

SRCS	=	mainwindow.c chat.c
OBJS	=	${SRCS:.c=.o}

all : ${OBJS}
#	@echo "all"

%.o : %.c
	${CC} ${CFLAGS} -c $<

clean:
	rm *.o

test : realclean ${OBJS} test.o
	${CC} -o $@ ${OBJS} test.o ${LDLIB}

realclean : 
	rm -rf *.o test
	
